//
//  ViewController.m
//  Demo
//
//  Created by tanwz on 16/11/24.
//  Copyright © 2016年 tanwz. All rights reserved.
//

#import "ViewController.h"
#import "ScrollPageView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    NSArray *images = @[[[NSBundle mainBundle] URLForResource:@"plant1.jpg" withExtension:nil],
                        [[NSBundle mainBundle] URLForResource:@"plant2.jpg" withExtension:nil],
                        [[NSBundle mainBundle] URLForResource:@"plant3.jpg" withExtension:nil],
                        [[NSBundle mainBundle] URLForResource:@"plant4.jpg" withExtension:nil]];
    
    ScrollPageView *pageView = [[ScrollPageView alloc] initWithFrame:CGRectMake(20, 100, 300, 200)];
    pageView.imageURLs = images;
    [self.view addSubview:pageView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
